<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>长沙威胜信息技术有限公司</title>
		<script type="text/javascript"
			src="<s:url value="jquery-easyui/jquery-1.7.2.min.js"/>"></script>
		<link rel="stylesheet" type="text/css" href="css/login.css" />
		<link rel="stylesheet" type="text/css"
			href="<s:url value='jquery-easyui/themes/default/easyui.css'/>">
		<link rel="stylesheet" type="text/css"
			href="<s:url value='jquery-easyui/themes/default/icon.css'/>">
		<script type="text/javascript">
		$(function() {
			var reqObj = getRequestParams();
			var flag = reqObj["flag"];
			if (flag == "timeOut") {
				$("#msgDiv").html("session已过期，请重新登录！");
			}
		});
		
		function getRequestParams(){
		    var url = location.search; //获取url中"?"符后的字串
		    var theRequest = new Object();
		    if (url.indexOf("?") != -1) {
		        var str = url.substr(1);
		        strs = str.split("&");
		        for (var i = 0; i < strs.length; i++) {
		            theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
		        }
		    }
		    return theRequest;
		}
		</script>
	</head>
	<body>
		<div class="f_login">
			<div class="wrapper">
				<div class="login">
					<form action="j_spring_security_check" method="post" id="loginForm">
						<table cellspacing="5">
							<tr>
								<td colspan="6">
									<div style="color: red; font-style: italic; font-weight: bold;"
										id="msgDiv">
										${sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
									</div>
								</td>
							</tr>
							<tr class="input">
								<td class="lable" nowrap>
									用户名：
								</td>
								<td>
									<s:textfield id="j_username" name="j_username" label="用户名"
										theme="simple"></s:textfield>
								</td>
								<td>
									密&nbsp;&nbsp;码：
								</td>
								<td>
									<s:password id="j_password" name="j_password" label="密码"
										theme="simple"></s:password>
								</td>
								<td>
									<input type="submit" name="login" id="login" class="e_button"
										value="确定" />
								</td>
								<td>
									<input type="reset" name="reset" id="reset" class="e_button"
										value="取消" />
								</td>
							</tr>
						</table>
					</form>
				</div>
			</div>
		</div>
		<div class="f_copyright">
			版权所有：
			<span>威胜集团 湘ICP备05000668号</span>
			<br>
			<span> [ <a
				href="attach?file_name=WadePrinter.exe&file_path=/setup/WadePrinter_1.3.exe"
				class="print">下载打印控件</a> | <a
				href="attach?file_name=tools.exe&file_path=/setup/tools.exe"
				class="tool">工具包下载</a> ] </span>
		</div>
	</body>
</html>